/**
*      author: Y_Yao
*      created: 2024-11-10 12:02:39
**/

#include<bits/stdc++.h>

using namespace std;
using LL = long long;
const LL LLINF = 1e18;
const int INF = 0x3f3f3f3f;
int w;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);

    cin >> w;
    if(w == 2)
    {
        cout << "NO" << endl;
        return 0;
    }
    if(w % 2 == 1)
    {
        cout << "NO" << endl;
    }
    else cout << "YES" << endl;
    return 0;
}